﻿@model HR.ProjectX.GUI.ViewModels.Customer.CustomerRegisterView

@{
    ViewBag.Title = "Register";
}

@if (Model.HasIssue)
{
    <div style="color: #D63301; background-color: #FFCCBA; padding: 2px 2px 2px 10px; margin-bottom: 10px;" >
        <p>@Html.Encode(Model.Message)</p>
    </div>
}

<h1 class="page-title">Register</h1>

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td class="tbl-cell-label">
                <label>Name</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(n => n.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Gender</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(g => g.Gender)
                @Html.ValidationMessageFor(model => model.Gender)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Email</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(e => e.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>PhoneNumer</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(p => p.PhoneNumber)
                @Html.ValidationMessageFor(model => model.PhoneNumber)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Address</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(a => a.Address)
                @Html.ValidationMessageFor(model => model.Address)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Town</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(t => t.Town)
                @Html.ValidationMessageFor(model => model.Town)
            </td>
        </tr>
        <tr>
            <td class="tbl-cell-label">
                <label>Country</label>
            </td>
        </tr>
        <tr>
            <td>
                @Html.EditorFor(c => c.Country)
                @Html.ValidationMessageFor(model => model.Country)
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="Register" />
            </td>
        </tr>
    </table>
}